package com.example.huadu_server.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.huadu_server.admin.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdminMapper extends BaseMapper<Admin> {

    @Select("SELECT * FROM admin WHERE email = #{email}")
    Admin selectByEmail(String email);
}

